import request from '@/utils/request'

// 查询工艺参数列表
export function listProcess(query) {
  return request({
    url: '/setting/process/list',
    method: 'get',
    params: query
  })
}

// 查询工艺参数详细
export function getProcess(id) {
  return request({
    url: '/setting/process/' + id,
    method: 'get'
  })
}

// 新增工艺参数
export function addProcess(data) {
  return request({
    url: '/setting/process',
    method: 'post',
    data: data
  })
}

// 修改工艺参数
export function updateProcess(data) {
  return request({
    url: '/setting/process',
    method: 'put',
    data: data
  })
}

// 删除工艺参数
export function delProcess(id) {
  return request({
    url: '/setting/process/' + id,
    method: 'delete'
  })
}

//获取厚度和颜色
export function getThicknessColor(){
  return request({
    url:'/setting/process/getThicknessColor',
    method:'get'
  })
}
